import request from '@/utils/request'

// 行别（分页）
export function getListPage(query) {
  return request({
    url: '/basic/direction/listTableTree',
    method: 'GET',
    params: query
  })
}

export function updateData(query) {
  return request({
    url: '/basic/direction/',
    method: 'POST',
    data: query
  })
}

export function deleteData(query) {
  return request({
    url: `/basic/direction/${query}`,
    method: 'DELETE'
  })
}

// 行别（不分页）
export function directionList(query) {
  return request({
    url: `/basic/direction/list`,
    method: 'GET'
  })
}
